package cn.newcapec.hnnx.transfer.control;

import cn.newcapec.hnnx.transfer.service.DemoService;
import cn.newcapec.hnnx.transfer.utils.ILogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class DemoControl implements ILogFactory {

    @Autowired
    DemoService demoService;

    @RequestMapping("/demo")
    public List<Map<String, Object>> demo() {
        List<Map<String, Object>> result = demoService.demoSelect();
        log.info("测试日志: {}", result);
        return result;
    }
}
